home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
who.z
/
who
Wrap
Text File
|
1998-10-30
|
15KB
|
265 lines
wwwwhhhhoooo((((1111)))) wwwwhhhhoooo((((1111))))
NNNNAAAAMMMMEEEE
_wwww_hhhh_oooo - display who is on the system
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
_wwww_hhhh_oooo [_----_mmmm_uuuu] -s [_----_bbbb_HHHH_llll_pppp_rrrr_tttt] [ _f_i_l_e ]
_wwww_hhhh_oooo [_----_mmmm_TTTT_uuuu] [_----_aaaa_bbbb_dddd_HHHH_llll_pppp_rrrr_tttt] [ _f_i_l_e ]
_wwww_hhhh_oooo _----_qqqq_nnnn _x [ _f_i_l_e ]
_wwww_hhhh_oooo _aaaa_mmmm _iiii
_wwww_hhhh_oooo _aaaa_mmmm _IIII
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_wwww_hhhh_oooo can list the user's name, terminal line, login time, elapsed time
since activity occurred on the line, and the process ID of the command
interpreter (shell) for each current UNIX system user. It examines the
_////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp_xxxx file to obtain its information. If _f_i_l_e is given, that
file (which must be in _uuuu_tttt_mmmm_pppp_xxxx(4) format) is examined. Usually, _f_i_l_e will
be _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp, which contains a history of all the logins since the
file was last created.
Note that _wwww_hhhh_oooo shows only users of ttys and it does not report any logged
in users who are simply running X applications from their desktop menus.
OOOOPPPPEEEERRRRAAAANNNNDDDDSSSS
_wwww_hhhh_oooo with the _aaaa_mmmm _iiii or _aaaa_mmmm _IIII operands identifies the invoking user.
OOOOPPPPTTTTIIIIOOOONNNNSSSS
With options, _wwww_hhhh_oooo can list logins, logoffs, reboots, and changes to the
system clock, as well as other processes spawned by the _iiii_nnnn_iiii_tttt process.
These options are:
_----_uuuu This option lists only those users who are currently logged in.
The _n_a_m_e is the user's login name. The _l_i_n_e is the name of the
line as found in the directory _////_dddd_eeee_vvvv. The _t_i_m_e is the time that the
user logged in. The _i_d_l_e column contains the number of hours and
minutes since activity last occurred on that particular line
(roughly, the last time something was written on that line). A dot
(_....) indicates that the terminal has seen activity in the last
minute and is therefore ``current.'' If more than twenty-four
hours have elapsed or the line has not been used since boot time,
the entry is marked _oooo_llll_dddd. This field is useful when trying to
determine whether a person is working at the terminal or not. The
_p_i_d is the process ID of the user's shell. The _c_o_m_m_e_n_t is the
comment field associated with this line as found in _////_eeee_tttt_cccc_////_iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb
[see _iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb(4)]. This can contain information about where the
terminal is located, the telephone number of the dataset, type of
terminal if hard-wired, and so on.
PPPPaaaaggggeeee 1111
wwwwhhhhoooo((((1111)))) wwwwhhhhoooo((((1111))))
_----_TTTT This option is the same as the _----_uuuu option, except that the _s_t_a_t_e of
the terminal line is printed. The _s_t_a_t_e describes whether someone
else can write to that terminal. A _++++ appears if the terminal is
writable by anyone; a _---- appears if it is not. _rrrr_oooo_oooo_tttt can write to
all lines having a _++++ or a _---- in the _s_t_a_t_e field. If a bad line is
encountered, a _???? is printed.
_----_llll This option lists only those lines on which the system is waiting
for someone to login. The _n_a_m_e field is _LLLL_OOOO_GGGG_IIII_NNNN in such cases.
Other fields are the same as for user entries except that the _s_t_a_t_e
field does not exist.
_----_mmmm This option outputs only information about the current terminal.
_----_HHHH This option will print column headings above the regular output.
_----_qqqq This is a quick _wwww_hhhh_oooo, displaying only the names and the number of
users currently logged on. When this option is used, all other
options are ignored.
_----_pppp This option lists any other process which is currently active and
has been previously spawned by _iiii_nnnn_iiii_tttt. The _n_a_m_e field is the name of
the program executed by _iiii_nnnn_iiii_tttt as found in _////_eeee_tttt_cccc_////_iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb. The _s_t_a_t_e,
_llll_iiii_nnnn_eeee, and _i_d_l_e fields have no meaning. The _c_o_m_m_e_n_t field shows the
_iiii_dddd field of the line from _////_eeee_tttt_cccc_////_iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb that spawned this process.
See _iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb(4).
_----_dddd This option displays all processes that have expired and not been
respawned by _iiii_nnnn_iiii_tttt. The _eeee_xxxx_iiii_tttt field appears for dead processes and
contains the termination and exit values [as returned by _wwww_aaaa_iiii_tttt(2)],
of the dead process. This can be useful in determining why a
process terminated.
_----_bbbb This option indicates the time and date of the last reboot.
_----_rrrr This option indicates the current _r_u_n-_l_e_v_e_l of the _iiii_nnnn_iiii_tttt process.
In addition, it produces the current state, the number of previous
times the system had been in the current state, and the previous
state under the _i_d_l_e, _p_i_d, and _c_o_m_m_e_n_t headings, respectively.
_----_tttt This option indicates the last change to the system clock (via the
_dddd_aaaa_tttt_eeee command) by _rrrr_oooo_oooo_tttt. See _ssss_uuuu(1M).
_----_aaaa This option processes _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp_xxxx or the named _f_i_l_e with all
options turned on.
_----_ssss This option is the default and lists only the _n_a_m_e, _llll_iiii_nnnn_eeee, and _t_i_m_e
fields.
_----_nnnn _x This option takes a numeric argument, _x, which specifies the number
of users to display per line. _x must be at least _1111. The -n option
must be used with -q.
PPPPaaaaggggeeee 2222
wwwwhhhhoooo((((1111)))) wwwwhhhhoooo((((1111))))
Note to privileged users: after a shutdown to the single-user state, _wwww_hhhh_oooo
returns a prompt; the reason is that since _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp_xxxx is updated at
login time and there is no login in single-user state, _wwww_hhhh_oooo cannot report
accurately on this state. _wwww_hhhh_oooo _aaaa_mmmm _iiii, however, returns the correct
information.
EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
The following environment variables affect the execution of _wwww_hhhh_oooo:
_LLLL_AAAA_NNNN_GGGG provide a default value for the internationalization variables that
are unset or null. If _L_A_N_G is unset or null the corresponding value
from the implementation-specific default locale will be used. If any
of the internationalization variables contains an invalid setting,
the utility will behave as if none of the variables had been
defined.
_LLLL_CCCC______AAAA_LLLL_LLLL
if set to a non-empty string value, override the values of all the
other internationalization variables.
_LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE
determine the locale for the interpretation of sequences of bytes of
text data as characters (for example, single - as opposed to multi-
byte - characters in arguments).
_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS
determine the locale that should be used to affect the format and
contents of diagnostic messages written to standard error.
_NNNN_LLLL_SSSS_PPPP_AAAA_TTTT_HHHH
determine the location of message catalogs for the processing of
_L_C__M_E_S_S_A_G_E_S.
SSSSTTTTDDDDOOOOUUUUTTTT
The general format for output is:
_n_a_m_e _[[[[_s_t_a_t_e_]]]] _l_i_n_e _t_i_m_e _[[[[_i_d_l_e_]]]] _[[[[_p_i_d_]]]] _[[[[_c_o_m_m_e_n_t_]]]] _[[[[_e_x_i_t_]]]]
The _n_a_m_e, _l_i_n_e, and _t_i_m_e information is produced by all options except
_----_qqqq; the _s_t_a_t_e information is produced only by _----_TTTT; the _i_d_l_e and _p_i_d
information is produced only by _----_uuuu, _----_llll, and _----_TTTT; and the _c_o_m_m_e_n_t and _eeee_xxxx_iiii_tttt
information is produced only by _----_aaaa. The information produced for _----_pppp, _----_dddd,
and _----_rrrr is explained during the discussion of each option.
The following format is used for the ----TTTT option:
"%s %c %s %s\n", <_n_a_m_e>, <_t_e_r_m_i_n_a_l _s_t_a_t_e>, <_t_e_r_m_i_n_a_l _n_a_m_e>, <_t_i_m_e _o_f
_l_o_g_i_n>
where <_t_e_r_m_i_n_a_l _s_t_a_t_e> is one of the following characters:
PPPPaaaaggggeeee 3333
wwwwhhhhoooo((((1111)))) wwwwhhhhoooo((((1111))))
+ the terminal allows write access to other users
- the terminal denies write access to other users
? the terminal write-access state cannot be determined
EEEEXXXXIIIITTTT SSSSTTTTAAAATTTTUUUUSSSS
The following exit values are returned:
_0000 successful completion
_>>>>_0000 an error occurred
NNNNOOOOTTTTEEEESSSS
_wwww(1) and _wwww_hhhh_oooo(1) can report different idle times for the same line. _wwww
will report the time elapsed since input occurred, while _wwww_hhhh_oooo will report
the time elapsed since output occurred (roughly speaking). If there is a
job running that produces output, the idle times will differ between the
two programs:
babylon: who -Hu
NAME LINE TIME IDLE PID COMMENTS root
ttyd1 Jul 6 10:37 . 1955 alt console
babylon: w
User tty from login@ idle JCPU PCPU what root d1
10:37am 5:54 23 23 tail -f SYSLOG
FFFFIIIILLLLEEEESSSS
_////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp
_////_eeee_tttt_cccc_////_iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb
_////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp_xxxx
_////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_cccc_oooo_rrrr_eeee_...._aaaa_bbbb_iiii
_////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_ssss_gggg_iiii_cccc_oooo_rrrr_eeee
language-specific message file [See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn (5).]
SSSSEEEEEEEE AAAALLLLSSSSOOOO
_dddd_aaaa_tttt_eeee(1), _llll_oooo_gggg_iiii_nnnn(1), _mmmm_eeee_ssss_gggg(1), _ssss_uuuu(1M), _iiii_nnnn_iiii_tttt(1M), _iiii_nnnn_iiii_tttt_tttt_aaaa_bbbb(4), _uuuu_tttt_mmmm_pppp_xxxx(4),
_wwww_aaaa_iiii_tttt(2)
PPPPaaaaggggeeee 4444